package com.vhall.component.entity.account.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Admin-修改用户信息
 *
 * @author guoxin.wang
 * @date 2021/7/30 18:25
 */
@Data
public class AdmAccountEditStatusReqVO implements Serializable {

    private static final long serialVersionUID = 5027910296187722604L;

    @NotNull(message = "account_id参数错误")
    @ParamName("account_id")
    private Integer accountId;

    @NotNull(message = "status参数错误")
    @ParamName("status")
    @Range(min = -1, max = 0, message = "status只能是0,-1")
    private Integer status;

}
